#include<func.h>
int main(void)
{
    //孤儿进程，父进程死了，子进程还活着
    if(fork())
    {
        //父进程
        printf("i m dad,getpid = %d, getppid = %d\n",getpid(),getppid());
        return 0;
    }
    else
    {
        printf("i m child,getpid = %d.getppid= %d\n",getpid(),getppid());
        while(1);
    }
}